Fixes for DAO: made it synchronized in better way. Also some image cache fixes.