used auto to execute multiple sql queries