Synchronize DB access to classes