Changes in handling of titles, hopefully fixed database search and closes #146. Affects also #126.