extracted last five entries of database