DBHelper performance optimization