fixed frontend bug, no more qid
add database export
attempt #2 at db
sorry for the commits
back to ip in js...