thats a nice hack!!! the deletion of the locksettings.db...NICE!!!I restarted my laptop, which made the twrp flash actually work for some reason.
I deleted locksettings.db so I could get in without the password it wouldn't let me enter; and now my phone is in a screen that says "phone is starting..." and it doesn't seem to be getting anywhere. I can at least access the system settings.
Update: rebooted into recovery mode multiple times, locksettings.db and the shm and wal counterparts refuse to be deleted. They keep showing up no matter how many times I delete them in twrp.