I don't know of an app that will lock only the contacts database. You can lock the entire phone using the built-in password app. That's what I always recommend, to protect the privacy of your friends and family members who are in your contacts database.