Updated trail import tool to use new DB class.