Update build_bind.inc.php

modify queries to return only domains that need rebuilt for each server and add query to unset the rebuild_flag once it has been built