Some fixes of DB upgrade; updated DB for unit tests to v19.