updating title
to the database