Renamed users table from "users1" to "users"
Added logout when user unsubscribes
fixed some null pointer exceptions when user sends empty params
fixed enum int conversion