Add support for socket connections to databases