change the ordering of the vm
api need db in order to sync the database