queries and adding items to tables done