Upgrade go-pg to version 10
The currently used go-pg version is already pretty old. It would be good to migrate to the new version v10: https://github.com/go-pg/pg/blob/v10/CHANGELOG.md. One of the useful features is "Added pg.DBI which is a DB interface implemented by pg.DB and pg.Tx".