modularized the database host port and collection params