Split display and fix database path

Cherry-picking of https://github.com/vouillon/osm/pull/6 with only the ```Display``` module. It also includes a fix in case you want to change the database path. It simply didn't work without it.

cc @engil