Change database class