added a bind feature to stop overloading queries on the db
merge fixes