added database manager class