Implement downgrade in db adapter