Changed way to load wordpress database object for a faster one.