create working hotsocket api to recieve and pass on data

- create basic working API that writes to data base.
- make unittests.