Simplified getTrendingLikes and moved cutoff value (in hours) to the
database for on-the-fly changes.