Add a comment about why we ignore the error value
Use a PostgreSQL database for now
Make mkTpl return an error
Add unit tests for the basic stuff