foreign keys to serial types should be integers themself
logs should print the repr, not the str of items
added nonify function to turn 'None' strings into actual None value
buckets needs to unpack their data
fixed type errors
fixed uneeded type changing, postgres will do it for us