Add registry prefix support for the Firebird engine

Adapted from the patch made by @ahawkins318 for the Oracle engine (#172).