* refactor: convert getConnection to non-hook * fix: remove getConnection from hook dependecies * fix: unecessary optional