read sql configuration from file