NodeJS SQL query builder