Fixed Database creation script