Added transactions, Inserts are slow otherwise in a Sqlite database