- basic functionality to parse registration request and store record in db
- fix device_id type in the schema