I use neovim for querying my databases with DBUI and tpope dadbod :) https://www.ssp.sh/brain/query-databases-in-vim-vim-dadbod/

But HeidiSQL and DBeaver are great, and open source (DBeaver even has a vim integration too;)