Adding the changes to help the use of HstoreFlattenFields And django-hstore, because we have to change the quote_name generated from django DatabaseWrapper