Fix tablename quoting for postgres