Fix class database