Merge pull request #4 from bdelliott/tpool_dev

Add a MySQL DB backend
make db/api IMPL better