assign one object to another
corrected name convention and sql issue