updated DB script