Deleted unused import statements and closed DB connection