Added Derby test, solidified a few other things.
"Added ref table"