Changing BaseDBHelper.php to work with CONSTANTS.