save content to database