This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Although there are database (and even piped streams) questions here in the threads forum, they are at least related to threads. I don't see anything in this question that led you to believe that this is a threads related issue.
So I will move this to the Database forum... as that seems more appropriate.