Few changes, details below

Change import order for gevent monkey_patch
Split some function for readability
Change table name form raw_price to daily_price
Change primary key of daily_price to only insert 1 row per items, and
changed the code to update if not inserted (duplicate row)
Add the ability to choose to import history and daily prices
Remove purge on daily prices and remove the option in config