Added DB query on posts