adding DB save and restore when no connection, adding tips pagination