SQL reader improved