fixed issue with projects not being deleted from db