updating classes and creating database