Modify fetch url.
Refactor database.coffee.