Feature/popular sorting (with postgresql)