Updated SQL for projects app