Problem with Jobs

We run a server where we constantly add and remove classes/jobs from darkrp gmod, currently we ran into a few lua errors and we would like to solve them. They are very hard to figure out honestly idk if there is a fix. I remember a friend that used to fix this by resetting someones ULX Rank but i dont think that is the issue as i dont even know who “Dylan” is.


Redownloading all lightmaps
There are 41 Lua problems!
	Please check your console for more information!
[ERROR] A runtime error has occurred in "gamemodes/darkrp/gamemode/modules/base/sv_data.lua" on line 427.
The best help I can give you is this:

Failed to retrieve player information from the database. 

Hints:
	- This means your database or the connection to your database is fucked.
	- This is the error given by the database:
		column rpname is not unique

The responsibility for the error above lies with (the authors of) one (or more) of these files:
	1. gamemodes/darkrp/gamemode/modules/base/sv_data.lua on line 427
	2. gamemodes/darkrp/gamemode/modules/base/sv_data.lua on line 313
	3. gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua on line 299
	4. gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua on line 243
	5. gamemodes/darkrp/gamemode/modules/base/sv_data.lua on line 287
	6. gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua on line 304
	7. gamemodes/darkrp/gamemode/modules/base/sv_data.lua on line 267
	8. gamemodes/darkrp/gamemode/modules/base/sv_data.lua on line 312
	9. gamemodes/darkrp/gamemode/modules/base/sv_data.lua on line 313
	10. gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua on line 299
	11. gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua on line 243
	12. gamemodes/darkrp/gamemode/modules/base/sv_data.lua on line 287
	13. gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua on line 304
	14. gamemodes/darkrp/gamemode/modules/base/sv_data.lua on line 267
	15. gamemodes/darkrp/gamemode/modules/base/sv_data.lua on line 312
	16. gamemodes/darkrp/gamemode/modules/base/sv_data.lua on line 313
	17. gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua on line 299
	18. gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua on line 243
	19. gamemodes/darkrp/gamemode/modules/base/sv_data.lua on line 287
	20. gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua on line 304
	21. gamemodes/darkrp/gamemode/modules/base/sv_data.lua on line 267
	22. gamemodes/darkrp/gamemode/modules/base/sv_data.lua on line 312
	23. gamemodes/darkrp/gamemode/modules/base/sv_data.lua on line 313
	24. gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua on line 299
	25. gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua on line 243
	26. gamemodes/darkrp/gamemode/modules/base/sv_data.lua on line 287
	27. gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua on line 304
	28. gamemodes/darkrp/gamemode/modules/base/sv_data.lua on line 267
	29. gamemodes/darkrp/gamemode/modules/base/sv_data.lua on line 312
	30. gamemodes/darkrp/gamemode/modules/base/sv_data.lua on line 399
	31. gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua on line 587
------- End of Simplerr error -------

[ERROR] A runtime error has occurred in "gamemodes/darkrp/gamemode/modules/base/sh_createitems.lua" on line 384.
The best help I can give you is this:

There is a player with an invalid team!

The player's name is Dylan, their team number is "1001", which has the name "Unassigned"

Hints:
	- It is the server owner's responsibility to figure out why that player has no valid team.
	- This error is very likely to be caused by an earlier error. If you don't see any errors in your own console, look at the server console.

The responsibility for the error above lies with (the authors of) one (or more) of these files:
	1. gamemodes/darkrp/gamemode/modules/base/sh_createitems.lua on line 384
	2. gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua on line 605
------- End of Simplerr error -------


This is the ERROR, i will also have a pastebin link here so you can see our jobs

May I ask if you have used any Generator to create the jobs? A simple structure fail happens quite a lot then it wont be able to retrieve the data of any player.

No, I free hand/copy and paste all of my jobs just change the name and a few numbers. I have never had a problem with it in the past until i started to develop a server that has 50/50 players daily. Then we get this error every now and then when we join (Usually Staff or of Higher Ranks)

I have looked into it more and it looks like a database corruption.
I have found a link where the fix is: https://github.com/FPtje/DarkRP/issues/2466

Have a good read.