0.6.7

all operation on db moved to sim.clj.
to avoid writing db in sim thread when the db is closed in main ui
thread.