Test scripts for DB query