db stuff no longer segfualting, but .db file appears to be empty despite writing to it
..
..
..