saving content to DB