Optimizing DatabaseHelper