Face detection on database images