Added closing of db connection before create new
v0.0.4