Adds tracker database interaction with MySQL.

Needs testing.