1) this is something that is too "personal", many people wants database connection, but many people want to connect to other types of databases. you could write a dll for it
2) there is already a function for this, don't know the name for it atm , but i guess it's good enough
3) don't really understand this, but that could be me
4) should be useful, but if im right this is already made in med. But it's not working always that good
5) you can use subfolders... add:
Code:

path "path to folder";


to your script
6) we already have:
vec_for_bone
ang_for_bone