Fixed DBManager compile errors