saveing in sqlitedb if no internet connection

Signed-off-by: Fons <lord.fontana@gmail.com>