Update database and environment configuration