Maps object methods to Mysql SQL queries for coffeescript