Implemented Geo-fencing.

Implemented Geo-fencing. Working with database on VM. Includes some
test code for reading database.