fix databaselock, to avoid deadlock when transaction waiting for mutex
disable background loading for now, to avoid problems on window.top