refactoring db_controller

begin optimizing db_controller
added Brightcove video code to widget function (videos not working yet,
but DOM injection is occuring.