added most methods to write geo/address to the database