Add tolerance to allow for db not always being connected or table created (like in rake tasks)