Make crud queries dependent of urls