converted the DatabaseConnection class to a singleton
it now returns a database connection using DatabaseConnection::getConnection(config)
and will only create one copy of the connection. If the connection already exists,
it returns it.