Cmd line db load

Ok a clean version of this pull request.