sorted databaseaccessor