Database storage interface

Add a DBStore abstract class that specific Database platforms can
inherit from and implement.