server: add support for type 1 messages

Signed-off-by: Valentina Manea <valentina.manea.m@gmail.com>
server: update user position to database

Signed-off-by: Valentina Manea <valentina.manea.m@gmail.com>