Fixed dir not existing and added db to gitignore
added media files to gitignore