Integrated annotation saving into the database