Added a view improvements to the db module