removed cmd.Cmd , added two classes for database