closeDB added