fixed up DB manager, made manager controller extendable