Basic SQL structure completed, works against H2, but fails against PG, awesome!