tweaks to sql setup