Added SQL code for database generation