finishing the ip to location api based on the seventeenmondb database.