Fix Firebird backend to pass all the tests