Restructured settings files
Now uses PostgreSQL