Fix database initialization for functional enviroments, in case the schema is not already existing.
See #8518 - the change might be enough to fix that issue.
Authored by: cboos 2009-07-28
Parent: [r8380]
Child: [r8382]