Dbrefactor

callback for errors, no console.logs, always use numbers for rates, http request error handling