Done did stuff

I updated the TODO file to show what we still need to do (for now)
I completely re-wrote the math and most of the body, I left the drawing the same.
I got the database imported in (you need to start a server to test test3 now)

Most of the things are now done
A) with local variables
A_i) with functions returning values instead of setting global variables
B) asynchronously - this is because  retrieving information from anywhere outside of the file (i.e. GET) is async.