Use 1 query for all status variables, remove extraneous import