Add *.php~ files to .gitignore
Generate doctrine metadata and entity classes
Backup database
Delete database