Fixed handling of [databases] section with asterisks

Currently, the lens fails on the following:
[databases]
* = host=backend