adds database.yml.example and if else nav bar view