dbwrapper: Work on fixing prepared queries.