basic object to communicate with db