If 'with_registry_prefix' use the DB as registry

Move the code from firebird.pm to Engine.pm;
Adapt the firebird.t test;