Fix resource order to converge on first run
Fix group ownership of db to use the correct attribute
Merge pull request #6 from 3dinfluence/pr4_fixup

Pull Request 4 fixup