fix postgres db migration failure since no result is returned in this case