Added DBInterface class to manage database connections