add view and db