switched to postgres, fixed errors
added more elaborate example showing basics of query composition