upgrade to the DB class
ive implemented the functions to the db class so we know what it should be able to do.