updated database handling of plt.sh