setupdb call moved to background and parrot.js