A few bug fixes

this thing is working now.
I had to add return range(0) for Database.run_query() for cases where
there aren't any valid results ( le gasp ).

I also created a "RuntimeStorage" type for testing purposes. I left it
outside of the __main__ area because I thought it might be useful
elsewhere.