fixed type
switched to unlogged tables where possible
file to adjust settings during runtime
switched to temporary tables
changed logging to individual schemas
removed some debugging stuff