add db connection & select method