Implements basic database framework

Interfaces to MySQL databases to keep records on bot activity