fixed saving/loading the database, monitoring changes, fixed some unicode/ascii problems