fix prepared statements with resque