add a wrap to connect to db