split the program into proper functions: create database, grab_accounts, main. Added a urls dict to loop through