well i dont know what your expertise on PLCs are but they're not designed to work with databases. youd have to somehow set up a communication protocol between the PC with the database and the PLC.
if your familiar with vb programming you could probably make a winsock connection and establish...