Added time element to algorithm and difficulty updating into view - DB MIGRATE