add interface for application and db