added IDatabase interface

the interface that can be used to define all of the controller class
methods