added spacing to sql statements for better readability