I know flash 5 (or something) can read from a database, but it is quite limited. It is also possible to post (the same as an html form) information, which can be saved to the database. But I haven't got a clue as to how this works, I've never done any flash programming. And I guess that Flash MX has some better possibilites, but of that I know nothing.
It isn't possible to save to the database from javascript either, unless you post information as a form. Can be done invisbly to a frame of course.
If it is PHP (or Perl, JSP, Javascript etc) I can fix things though. But I have a lot of things on my todo-list which I'll have to do before I could start thinking of this. I could code the threads part though, that keeps credits updated and such.