fixed database / added util.js