sqlite insertions now in transaction