fixed table name bug in command factory
moved files to core project
fixed namespace in core project