Added close method for database interface.