health endpoint
keep bucket methods together
sql helpers
make method name explicit
add support for geting metrics from http api. cleaned up test