Plan/Engine: Fixing some inconsistencies with handling replies from DB.