save system in the database.