updates to mbed socket stuff and db logging of info