changed table Gateway injection to simple DB adapter