avoid segfault in Firebird driver in update_db_special_info
fix ValueError in case of Firebird driver
merge firebird_compatibility branch