optimization DBManager