Update pkmds_sql.cpp