detect single_inheritance

That way, people who want to name their table prefix_prefix_something still can.