I am connecting to a database, I am using threads and I only want one connection to be active at a time. I was trying to do that like this:
public class Datab