more tweaking of mysqllite statements