Added fixes for errors when database file may be locked, for example if you are running multiple servers trying to simultaneously write to one database, especially for synchronous sqlite_query, now there is a 2 seconds timeout, should be enough, but try to avoid using sqlite_query in that cases because it will cause hangups, use async for that.