update database manager and clean code