simple pagerank, not purely in SQL