fixed database insertion and added gitignore for database data