[fix] Database script

* Fixed missing value
Attr model, revive gps

* Attr model revives gps from json string