Database#<<: rewrite the file on every store