FIXED: issue with instantiating the dbi