Project view and update both working with database