Fixed up explore_db in a couple of places. No longer prints only partial tables in the terminal.