Updating values, converting queries to unix