Implemented a simple database class.