Fixed crash because of unclosed db connections
Periodic refresh for view started