SQL query building library, in Java