Added SQL code for DB