Implement cursor orientation.

Hello :)

I would like to push my commit into your branch to avoid two PR on `Hoa\Database` for the same issue.

After the merge I think you should do a `git pull --rebase upstream master`.
And finally, we could merge https://github.com/hoaproject/Database/pull/4.