Updates query script for BBS data.