Implement select

(#15 precedes this PR)

Implement select. Begin implementing nested dbs