starting to work out the thoughts on how to do this mbed to db process withs sockets