Subject porting from oracle to firebird