Convenience functions for DB access (in Clojure)