WIP: potential fix for scoped_db_conn_test

Don't merge yet, work in progress.

Basically built out a little TCPServer structure here, nothing more than what was absolutely needed. I'm working on making the shutdown a little cleaner.