Added class for database type structure