Create a Python server that will have an open socket on port 8266. Whenever a new client initiates a TCP connection, the server should start a new thread to process all traffic on that connection. Any JSON objects that come through the connection should be sent to 'test-database.clients' collection.