Added interface for db classes to use.