again, revert bd, fix sql file