Minor bug fixes in PopDBAPI