changed connecttodb