Add check db connection