I get a timeout since the database is not reachable.

It has something to do with socks5 proxy i have to use to make my tunnel connection with ssh.