I am using the beginTransaction() function, so after some insert queries, then I call commit() function.
beginTransaction()
commit()
sometimes it commits data, but sometime