correcting database creation error