fixed database / added util.js
Merge pull request #197 from jpecht/master

fixed database / added util.js