Use name() instead of hand quoting sequence names.

By using name() we can easily accomodate postgres sequences that exist
out side of sequences.

Fixes #4168