handle offline DB in Website