database to class and new file only for schema