Fixed crash caused by quote in database