added support for TOP N clauses in other database