Added rank query to database access.
Merge branch 'master' of https://github.com/abulovic/binner