establish connection to mongoose