reading from configuration file to a buffer
move init function to QueryManager