Add rails 12 factor. Add staging to database