Reduce repetition in database queries

Thanks for opening this source code -- as a newcomer to the language I'd been looking for examples of full Clojure web apps. I noticed a bit of code repetition in db.clj; this should make it a little easier to follow.