Update apis for db migration