fixed things in dbmanager