Laid out tracker logic/routes for Tornado + Added General DB Function