repaired error table name and not initialized class error