persist into db