Location history

Instead of storing the location on the lock, we store it in a separate table so we can keep track of a lock history.