For dealing with asynchronous JDBC queries