setting db connection