move update location db earlier.