A simple progress bar when building the database

![shot](https://f.cloud.github.com/assets/605277/2244124/a946e190-9d39-11e3-9ca5-9cacd281c907.png)

Not tested on Windows yet. I'm already quite sure that the cursor hiding/showing part won't work on Windows, but it's just cosmetic anyway. The rest are just ASCII.