Added base db connector code