create new table on failed select queries in mappers and collections