Updated SQL for creating database