SQL queries need to be inside DB.withConnection(implicit connection => ... ) blocks