SSH database configuration

What database are you using? If possible I would try to use a native
secure link such as ssl with authentication, much more efficient.
Postgresql for example can use ssl with client authentication. Not
sure about mysql.

Chris