Turns out _connect_to_host didn't need overloading, using stdlibrary logging module to log both to stdout and a database