Use current dragonfly api to setup datastore.

I did an upgrade from Refinery CMS 2.1.1 and run into issue where I couldn't compile assets because it was  throwing an exception. In the process of debugging I found out that we're not using current dragonfly api.