Finished DB model class, added mysql driver. Various small fixes