Move plan foreign modify in the right place.
Force sqlalchemy results to be treated as mappings and not sequences.