add close() to db