Modified source to allow for socket input handling within a threadpool executor service, to prevent the socket from waiting since the runnable objects will have to make database query calls