Db transfer

new db is working, but redis not active yet. 
i've tried to automize the sql_q file (queries part) but it didnt work.. or it'd take more time.. also i didn't want to change the rest of the code a lot.. 
Ultimately I'm not sure that adding the need_dump argument is justified. It's complicating a very high-usage function with something that could easily be handled elsewhere by the few functions that need it (with json.loads()).