fixing database creation