separate the coding fo connect-to-database from the SQL sentences.

 add the mongo-database information in the config files.