Sqllite cordova deadlock on db

How to check with multiple saves is there a deadlock? or prevent it?

my question is… how you get a deadlock^^