save the location details to the DB, added the code