Update db queries.