@staticmethod
def qn(name):
    """
        Quote name function definition was taken from
        django.db.backends.postgresql_psycopg2.operations.DatabaseOperations#quote_name
        as we plan to use only PostgreSQL so far and other methods of gathering this function required too much.
        """
    if name.startswith('"') and name.endswith('"'):
        return name
    return '"{}"'.format(name)
