working on db connector