Use a nicer call for checking DB writability.
Guard against loopy data structures.