added methods to query all post of certain ids
added code to rake task for resque so that each forked process does not have a stale database connection