test if SQlite connection is expired