[db] cleans up code a bit
[db] adds notion of positive or negative altitude to bands
fixes #16