testing db relations