create_random_id_functions now works even if pri_keys table has been already created