Fixed insert issue, refactored some db stuff into another class.. added gitignore file to hopefully fix import conflicts