Changes to database class.