Added SQL for the database structure