added actionLog table and dbAdapter - fixed syncDb function