Database save works; fixes #18