corrections in database creation