Using yesql to try and abstract out the queries