Make db details configurable.
Fix paths.