now we can use pattern to get db connection