Handling errors in database in titles and content