fix database cant load issue