add auto-complete hook in sql-mode