Use database to populate view