Fix for tables that doesn't have a primary key