Updated db connections and added membership initialization