Added twitter, and added possible subtype to WHERE
Added working directory constant
Updated shell script to exit virtualenv at the end