added saving text size and analysis time to database; added resetting frontend on analysis error