how to avoid the duplicate entries in data base using php with codeignetar