reverted database class.