db close all the time