Added binding abilities to NthSense. Fixed minor bug with SQL