export now only performed from db, not from cache - solves some problems