Now uses postgres since derby used too much ram.