Removed redundant database call
Moved call to updateTitles