More advanced upload script, making use of a database backend and user profiles.