added database class and bootstrap