Added functions for bus in QuerySQL