default db pointed at the wrong, undefined variable name