Added credential table queries, classes and logic. Password encryption.