Finalizing databas 2nd time