shifted direct-to-database into csv