Added a db connection close method