Removed unrequired db.connect calls