fixed issue with location number not updating database