updating queries that arent working