implemented algorithms view based on database