adding sql queries to update tables daily