added additional sql queries