database query program, and also a windowed console thing