Decoupling DB management, fixed for new Slim and Slim/View, fixed bug in field selectors