added database class