added sql code for project