Better debug for db class