store peer contacts in db