fix db connector