I used dadbod[0] and the following in my vimrc[1] to do a similar thing, only I haven't make the shortcuts for sending a block yet.
Looks nice though, maybe I'll try it out sometime!
[0] https://github.com/tpope/vim-dadbod
[1] au FileType sql nmap <leader>d :%:DB g:db<CR>