Handling custom sequence name

This resolves problems in pgsql with schemas outside search_path.