Added createBlankDocument method
Added userId to session
Revert to local database connection
Added create function; minor bug fix