added database class
added database class