db: added database manager