Solving the issue of inserting details of user's location into the databas