Data is inserted automatically to the database.