Changed db class + controllers.