Allowed types to be passed for select columns only. Also added some docstrings.
CsvBox now keeps track of foreign keys created in a meta data table in the db. This is among other things a preparation for persisting boxes.