move from class.db to class.function, add file sql dump