Finished database class.