WORK IN PROGRESS
YUA this is Sublime Text plugin with autocomplete by tables and columns on postgresql database.
Also he has some usefull sql snippets.
First you need install psql. On Windows also add he to PATH.
Then go to sublime packages dir (in Ubuntu and SB2: ~/.config-text-2/Packages)
Run:
$: git clone git@github.com:zerc/YUA-SQL.sublime_plugin.git YUA_SQL
Edit settings:
$: vi YUA_SQL/YUA_SQL.sublime-settings