Auto load db settings #48

Works for me, but someone should do a short test before merging...

closes #48