add relation between tables
add debug information