fix threading issues in central.py
preliminary work on billing manager
include an sqlite file for testing