working db connection & realm connectioni