Feature/database settings

Closes #64