connected to db, built single-query UI