done writing sql queryes. Begining to implement logic in 1C77