implement database view factory