returning defer db.Close() to original position