save both in db