Removed sql code