Fixed dependencies

Build didn't work with CoffeeScript 1.4
Added support for selecting database