added core and db, changed .gitignore
added gitignore
created tmp directories