Saving location to db and loading.