Close DB after use