use separate sql queries. much faster