added db-based configs, moved AWS private keys into db