fixed conn to be more db-api compliant.

Still LOTS to do though...
added gitignore