added view to DB and added the Db tables for the downTime