modifications to sql keys