Added reference count to location data entries (for effective reuse)
Modified database structure accordingly