Fixed small bug in database creation schema