How to combine two queries to one table