Changed door index system in an attempt to fix #1130.
Note: Your doors will reset.
Developer note: I do not expect conflicts with the old entries of the database, their ranges differ.