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.. 
Returning results by as-is makes _execute_query() less predictable than it previously was... would it be possible to have it return json.dumps(results) instead? That would match what line 124 returns.