You can use libfb from C, Gambas3 to connect Firebird Database Server
C Library to connect and use Firebird SQL Server Database. This library wraps firebird's C API and provide helpful functions to execute database queries. It includes a Gambas 3 port.