titles to db is working