initial upload

this is what i have sofar - the code is a mess, since it's quite old.
not using PDO, etc.