fixed database table name bug