关闭db写了个方法在finally里调用

close database in finally block