DBManager bug fixed