adding backward compatibility to DBHelper.java