Add macro for wrapping db tests
Add artwork integration tests

In order to make the add-artwork code more portable (postgresql vs
sqlite) I had to change the way it gets the id back. It now wraps the
insert and a select for max(id) in a transaction so it should return the
current highest val of the autoinc.