save location to db