Fix: append database prefix expression in FROM and JOIN clauses