reading config from file,too. models and queries is compatible with postgresql