get ready to save into db