Implement db manager