db works if coffee compiled to js