Config: add a function to get a database object

For now this always returns a MySQL object.  It also passes the
configuration to the constructor rather than making the MySQL
object fetch it itself.
Config: set the database host to kamaka