Pass db through the compiler.