make rmi server persistent; add database checks