restructure question loop and add freetext

i made some improvements: freetext is now added to the database!

hope this code looks good to you, i'm new to python ^^