Hopefully solved app crash because of db lock