Created database class and config