Database open/close methods. Cleaned app start and stop.