first attempt to handle sql for project priority