Make error messages more consistent
Fix double escapes in sql.sql
Allow hooking into fmgr