tweaked SQL statement inputs