Efficiency improvement in deleting contacts

Deleting all Contacts will no longer start from the top of the database,
but from the bottom so that id's are not shifted every time.