Made "refactor_social_login_keys" patch SQL-based (#5116)
Made "refactor_social_login_keys" patch SQL-based (#5116)

* Made refactor_social_login_keys SQL based

* Fixed syntax

* Syntax fixes #2

* Syntax fixes #3

* OR instead of AND in null condition

* Refactored query to include standard columns. Reintroduced code for Social Login Keys

* Removed print statement

* Added provider to standard cols

* Complete refactor

* Corrections to columns and values

* Corrected insert_user_social_login and position of idx increment

* cstr in idx

* Corrected target column list

* Codacy fixes

* Fix Codacy Errors

almeidapaulopt/frappe,neilLasrado/frappe,yashodhank/frappe,ESS-LLP/frappe,yashodhank/frappe,adityahase/frappe,yashodhank/frappe,StrellaGroup/frappe,saurabh6790/frappe,mhbu50/frappe,almeidapaulopt/frappe,ESS-LLP/frappe,neilLasrado/frappe,tundebabzy/frappe,RicardoJohann/frappe,chdecultot/frappe,vjFaLk/frappe,vjFaLk/frappe,frappe/frappe,ESS-LLP/frappe,manassolanki/frappe,yashodhank/frappe,RicardoJohann/frappe,saurabh6790/frappe,saurabh6790/frappe,saurabh6790/frappe,manassolanki/frappe,almeidapaulopt/frappe,vjFaLk/frappe,manassolanki/frappe,tundebabzy/frappe,RicardoJohann/frappe,tundebabzy/frappe,adityahase/frappe,StrellaGroup/frappe,ESS-LLP/frappe,mhbu50/frappe,mhbu50/frappe,neilLasrado/frappe,manassolanki/frappe,adityahase/frappe,vjFaLk/frappe,chdecultot/frappe,chdecultot/frappe,RicardoJohann/frappe,StrellaGroup/frappe,neilLasrado/frappe,chdecultot/frappe,frappe/frappe,mhbu50/frappe,frappe/frappe,tundebabzy/frappe,almeidapaulopt/frappe,adityahase/frappe