connect mongoose using dynamic URL