Refactored DB to keep common crud data in DB class, each DB object only needs to specify functions unique to themselves.