insert title into db as well