save extra_context to database