Moved queries to utils.