added loading spinner, cleaned up file structure, removed database_settings.js from .gitingore