Add relations, list and single

add list relation
add single relation
fix concurrency error for existing tables
Fix checkTable function if table exists already