Fixed SQLiteDiskIOException in DatabaseHelper (which caused crashes on startup/login)