fix table_exists for tablename == nil
remove redundant dependency
add ucid property