persisting in db implemented