Update geomodel to use ndb and add simple tests