Loads of changes to switch back to MySQL...

Created an Interface for the DB connection.