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.. 
The space between append and the ( will work, but it looks really ugly. My linter and I would not approve :) I recommend removing that space.