FIX: Build db after setting up correct temp folder