Library for working with large sql queries