Support sql layer preserving constraint names

Also, use CURRENT_SCHEMA for the default schema.