do db_sync the right way, on install and upgrade