just before creating database