made view related updates discussed 09/23; added task related db code