even more infrastructure
logging works
failed queries and printfquery