Close db connection when done with it, strip tabs from stored proc.