Check for variable dimensions correctly.
Remove bad skipif statements and skip if there is no db.