change sqlite writer , write two tables for one result