Database Refactor

Replaced Query Interface and subclasses with a single Query class
object. Refactored Database Interface and MySqlDatabase class.