Update PopDBAPI class. The functions are not correct yet and need comments updated