Updated SQL for project