Add database class, database structure, other setup related stuff.