Get usage spec

Implemented get_usage per spec. Fixes #9 on SQL side.