added updated_datetime and deleted fields to all tables, and some of the queries