Update query for getting the completed and current projects