Changed db insert into normal sqlite code