Add docs and functions for fixing a strange issue in places.sqlite.

There are bookmarks that don't have proper parents, so they appear in location bar but not in 'Bookmarks manager'.