integrated hsql and fixed mysql reconnection