getting rid of pgdb dependency by implementing pgdb._quote() here