database class and conf class creation