knexify more sql functions