removed closing of db