Clean location editing, preparing for db