fixed user bug that happened after db migration. fixed bug with resque