Fix to build the Firebird backend

I have just tested the Firebird backend and it sort of works.