Added the view option and database interface function.