remove nested functions and fscanf "%as" from create & query