database snapshot and fixing a bug related to turbolinks caching