updated database with next/previous/print database functions