Sync code base against DB contents