Fix BuildPageQuery for Firebird databases

Fix paging statement for Firebird overriding BuildPageQuery()