Changed from the dummy db interface to the real deal. The code is good to go now