On startup we run an sqlite3 quick_check to verify the database integrity. In the majority of cases, the quick_check takes under 10 seconds. On systems with very large databases and very slow disk/cpu, this can take much longer so we freeze the timeout.