checks for correct key, values, table names