sqlite integration + internet check