changed the way v6 compat is implemented, used version detection instead of an argument
added perf data for db check