I don't think you are using static_tab for anything except its location, and you already have that (static_tab_loc). So you don't need to get the tab from mongo.