Bug fix insert query dicts to sqlite